package top.melody.ecommerce.webapps.console.weblogic;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import top.melody.ecommerce.common.util.page.PageRows;
import top.melody.ecommerce.common.util.page.Pagination;
import top.melody.ecommerce.platform.EcommerceException;
import top.melody.ecommerce.platform.api.domain.system.SecurityUser;
import top.melody.ecommerce.platform.api.service.SecurityUserService;

import javax.annotation.Resource;

/**
 * @author: blentle
 * @group: rd
 * @createdate: 2014/10/27 11:13
 * @mail: blentle.huan.ren@gmail.com
 * @description:
 * @since:1.0
 */
@Service
public class SecurityUserWeblogic {

    private static final Logger logger = LoggerFactory.getLogger(SecurityUserWeblogic.class);
    @Resource
    private SecurityUserService userService;

    public SecurityUser getSecurityUser(String loginId) throws EcommerceException {
        return userService.getSecurityUser(loginId);
    }

    public PageRows<SecurityUser> querySecurityUserListByPage(SecurityUser queryEntity, Pagination page) throws Exception {
        return userService.querySecurityUserListByPage(queryEntity, page);
    }

    public boolean modifySecurityUser(SecurityUser user) throws Exception {
        return userService.modifySecurityUser(user);
    }
}
